/*
  el-drawer 自定义 class
  custom-class="custom-x-drawer"
*/
.el-button.el-button--savesubmit {
  min-width: 93px;
}

.el-pagination {
  text-align: center;

  button, [att^='btn'],
  button:disabled {
    background-color: transparent;
  }

  .el-pager {
    li {
      background-color: transparent;
    }
  }
}

.el-select-dropdown__item {
  padding: 0 20px;
}

.el-table__fixed-right::before, .el-table__fixed::before {
  background-color: transparent;
}

.el-message {
  border-radius: 0;
}

.el-drawer__wrapper {
  outline: none;
}

.el-drawer {
  outline: none;
}

// 修改默认打开 title focus bug
.el-drawer > header > span:focus {
  outline-color: #F8F8F8;
}

.el-drawer > header > button:focus {
  outline-color: #F8F8F8;
}

.el-drawer > header > button:hover {
  color: rgb(64, 158, 255);
}

.custom-x-drawer {

  .el-drawer__header {
    margin: 0;
    padding: 8px 28px;
    background: #F8F8F8;
    font-size: 14px;
    color: $blackColor1;
    outline: none;

    > span {
      outline: none;
    }
  }

  .drawer-content {
    font-size: 13px;
    margin: 36px 0;
  }

  .el-drawer__body {
    position: absolute;
    top: 35px;
    width: 100%;
    bottom: 0;
  }
}

/*
  el-dialog 自定义 class
  custom-class="custom-x-dialog"
*/
.custom-x-dialog {
  .el-dialog__header {
    background-color: #efeeee;
    line-height: 36px;
    padding: 0 17px;

    .el-dialog__title {
      color: $blackColor2 !important;
      font-size: 14px !important;
    }

    .el-dialog__headerbtn {
      top: 9px;
      right: 15px;
    }
  }

  .el-dialog__body {
    padding: 15px 17px;
  }
}

.custom-x-table {
  &::before {
    height: 0;
  }

  .el-table__fixed::before {
    height: 0;
  }

  .el-table__header-wrapper, .el-table__fixed-header-wrapper {
    thead tr th {
      color: $greyColor1;
      font-size: 13px;
      text-align: center;

      div.cell {
        font-weight: normal;
      }
    }
  }

  .el-table__body-wrapper, .el-table__fixed-body-wrapper {
    //border-bottom: 1px solid #EBEEF5;
    tbody tr {
      line-height: 36px;

      td {
        color: $blackColor2;
        font-size: 13px;
        text-align: center;
      }
    }

  }

  .el-table__empty-block {
    border-bottom: 1px solid #EBEEF5;
  }
}

.custom-x-card {
  .el-card__header {
    padding: 13px 20px;
    font-size: 15px;
    border-bottom: none;

    .icon-right {
      float: right;
      padding: 3px 0;
      font-size: 16px;

      i {
        color: #909399
      }
    }
  }

  .el-card__body {
    padding-top: 0
  }
}

.el-form-item.is-required:not(.is-no-asterisk) .el-form-item__label-wrap > .el-form-item__label:before, .el-form-item.is-required:not(.is-no-asterisk) > .el-form-item__label:before {
  content: '';
  color: #DC6B6B;
  margin-right: 4px;
}


// 修复多级联动 radio
.el-cascader-panel .el-radio {
  width: 100%;
  height: 100%;
  z-index: 10;
  position: absolute;
  top: 10px;
  right: 10px;
}

.el-cascader-panel .el-radio__input {
  visibility: hidden;
}

.el-cascader-panel .el-cascader-node__postfix {
  top: 10px;
}

.el-table td, .el-table th {
  padding: 8px 0;
  min-width: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  text-overflow: ellipsis;
  vertical-align: middle;
  position: relative;
  text-align: left;
  user-select: initial;
}

.el-tree-node__content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  height: auto;
  cursor: pointer;
}

.el-tree-node__label {
  font-size: 13px;
  padding: 12px 0;
}
